import { observable } from 'mobx';
import { GetUserList } from '@src/service/userApi';

const OneStore = observable({


    entryList: [],

    userList: [],

    getEntryList() {
        //异步获取数据
        this.entryList = [{
            title: '帐号管理',
            imgUrl: 'entry_01',
            pathTo: 'http://www.baidu.com',
            target: ''
        },
        {
            title: '帐号管理',
            imgUrl: 'entry_02',
            pathTo: 'http://www.hao123.com',
            target: '_blank'
        }, {
            title: '会议管理',
            imgUrl: 'entry_03',
            pathTo: './meeting.html',
            target: ''
        }];
    },

    async getUserList() {
        var resultData = await GetUserList();
        this.userList = resultData.list;
        console.log(this.userList, "==========this.userList==========");
    }
})

export default OneStore;